<%@page import="com.onlineshop.highgee.entity.MyOrder"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:directive.page import="java.util.List" />
<jsp:useBean id="myOrder" class="com.onlineshop.highgee.entity.MyOrder"
	scope="session" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>HighGee</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
	<div id="wrap">

		<div class="header">
			<div class="logo">
				<a href="index.html"><img src="images/logo.gif" alt="" title=""
					border="0" /></a>
			</div>
			<div id="menu">
				<ul>
					<li class="selected"><a href="index.jsp">主页</a></li>
					<li><a href="about.jsp">关于我们</a></li>
					<li><a
						href="${pageContext.request.contextPath}/product/findAllProduct.do">全部手机</a></li>
					<li><a href=WhetherLogServlet>我的订单</a></li>
					<li><a href="register.jsp">注册</a></li>

					<li><a href="contact.jsp">联系我们</a></li>
				</ul>
			</div>


		</div>


		<div class="center_content">
			<div class="left_content">
				<div class="title">
					<span class="title_icon"><img src="images/bullet1.gif"
						alt="" title="" /></span>我的订单
				</div>

				<div class="feat_prod_box_details">



					<table width="600" border="1">
						<tr>
							<td>订单号</td>
							<td>购买人</td>
							<td>金额</td>
							<td>电话号码</td>
							<td>地址</td>
							<td></td>
							<td></td>
						</tr>
						<%
							List<MyOrder> list = new ArrayList<MyOrder>();
							list = (List<MyOrder>) session.getAttribute("list");
							for (int i = 0; i < list.size(); i++) {
								myOrder = (MyOrder) list.get(i);
								out.print("<tr>");
								out.print("<td>" + myOrder.getOrder_number() + "</td>");
								out.print("<td>" + myOrder.getOrder_name() + "</td>");
								out.print("<td>" + myOrder.getOrder_total() + "</td>");
								out.print("<td>" + myOrder.getOrder_phone() + "</td>");
								out.print("<td>" + myOrder.getOrder_adress() + "</td>");
						%>
						<td>
							<form action="DeleteOrderServlet" method="post">
								<input type="submit" name="submit" value="删除"> <input
									type="hidden" name="delete"
									value=<%=myOrder.getOrder_number()%>>
							</form>
						</td>
						<td>
							<form action="DetailedInformationServlet" method="post">
								<input type="submit" name="submit" value="详细信息"> <input
									type="hidden" name="detailedInformation"
									value=<%=myOrder.getOrder_number()%>>
							</form>
						</td>
						<%
							out.print("</tr>");
							}
						%>
					</table>

				</div>






				<div class="clear"></div>
			</div>
			<!--end of left content-->

			<div class="right_content">

				<div class="languages_box">
					<span class="red">Languages:</span> <a href="#"><img
						src="images/gb.gif" alt="" title="" border="0" /></a> <a href="#"><img
						src="images/fr.gif" alt="" title="" border="0" /></a> <a href="#"><img
						src="images/de.gif" alt="" title="" border="0" /></a>
				</div>
				<div class="currency">
					<span class="red">Currency: </span> <a href="#">GBP</a> <a href="#">EUR</a>
					<a href="#"><strong>USD</strong></a>
				</div>


				<%@include file="show_shop.jsp"%>



				<div class="right_box">

					<div class="title">
						<span class="title_icon"><img src="images/bullet5.gif"
							alt="" title="" /></span>品牌分类
					</div>
					<ul class="list">
						<!-- 传值 -->
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=1">apple</a></li>
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=2">华为</a></li>
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=3">荣耀</a></li>
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=4">vivo</a></li>
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=5">OPPO</a></li>
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=6">魅族</a></li>
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=7">联想</a></li>
						<li><a
							href="${pageContext.request.contextPath}/product/findByProductCid.do?&product_cid=8">iQOO</a></li>
					</ul>

					<div class="title">
						<span class="title_icon"><img src="images/bullet6.gif"
							alt="" title="" /></span>Partners
					</div>

					<ul class="list">
						<li><a href="#">accesories</a></li>
						<li><a href="#">flower gifts</a></li>
						<li><a href="#">specials</a></li>
						<li><a href="#">hollidays gifts</a></li>
						<li><a href="#">accesories</a></li>
						<li><a href="#">flower gifts</a></li>
						<li><a href="#">specials</a></li>
						<li><a href="#">hollidays gifts</a></li>
						<li><a href="#">accesories</a></li>
					</ul>

				</div>


			</div>
			<!--end of right content-->




			<div class="clear"></div>
		</div>
		<!--end of center content-->


		<div class="footer">
			<div class="left_footer">
				<img src="images/footer_logo.gif" alt="" title="" /><br /> <a
					href="http://csscreme.com"><img src="images/csscreme.gif"
					alt="by csscreme.com" title="by csscreme.com" border="0" /></a>
			</div>
			<div class="right_footer">
				<a href="#">主页</a> <a href="#">关于我们</a> <a href="#">服务</a> <a
					href="#">隐私政策</a> <a href="#">联系我们</a>

			</div>


		</div>


	</div>
</body>
</html>